import 'package:flutterone/generated/json/base/json_field.dart';
import 'package:flutterone/generated/json/json_info_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class JsonInfoEntity {
	String? nickname;
	int? level;
	List<String>? courses;
	@JSONField(name: "register_date")
	String? registerDate;
  String? imageName;
	JsonInfoComputer? computer;
  
  JsonInfoEntity();

  factory JsonInfoEntity.fromJson(Map<String, dynamic> json) => $JsonInfoEntityFromJson(json);

  Map<String, dynamic> toJson() => $JsonInfoEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class JsonInfoComputer {

	String? brand;
	int? price;
  
  JsonInfoComputer();

  factory JsonInfoComputer.fromJson(Map<String, dynamic> json) => $JsonInfoComputerFromJson(json);

  Map<String, dynamic> toJson() => $JsonInfoComputerToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}